//
//  NSArray+WLBlock.h
//  CeXi
//
//  Created by 录音转文字助手 on 2017/7/12.
//  Copyright © 2017年 wangLiang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSArray (WLBlock)
- (void)each:(void (^)(id, NSInteger idx))block;;
- (NSArray *)map:(id (^)(id object))block;
- (NSArray *)select:(BOOL (^)(id object))block;
- (id)selectItem:(BOOL (^)(id object))block;
- (NSArray *)reject:(BOOL (^)(id object))block;
- (id)rejectItem:(BOOL (^)(id object))block;
- (NSArray *)sort;
- (id)reduce:(id(^)(id accumulator, id object))block;
- (id)reduce:(id)initial withBlock:(id(^)(id accumulator, id object))block;

@end
